package com.swust.monitorProject.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author shuaixin
 * @since 2024-12-24
 */
@Getter
@Setter
@TableName("user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_ID", type = IdType.AUTO)
    private Long userId;

    @TableField("user_password")
    @NotNull
    private String password;

    @TableField("username")
    private String username;

    @TableField("user_nickname")
    private String nickname;

    @TableField("user_sex")
    private String userSex;

    @TableField("user_age")
    private Integer userAge;

    @TableField("dept_name")
    private String userDeptName;

    @TableField("dept_id")
    private Integer  userDeptId;


}

